﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CAD RID: 3245
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class OKBGMBEIMCB : IMessage<OKBGMBEIMCB>, IMessage, IEquatable<OKBGMBEIMCB>, IDeepCloneable<OKBGMBEIMCB>, IBufferMessage
	{
		// Token: 0x170028CD RID: 10445
		// (get) Token: 0x060090DC RID: 37084 RVA: 0x00180910 File Offset: 0x0017EB10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<OKBGMBEIMCB> Parser
		{
			get
			{
				return OKBGMBEIMCB._parser;
			}
		}

		// Token: 0x170028CE RID: 10446
		// (get) Token: 0x060090DD RID: 37085 RVA: 0x00180917 File Offset: 0x0017EB17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return OKBGMBEIMCBReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170028CF RID: 10447
		// (get) Token: 0x060090DE RID: 37086 RVA: 0x00180929 File Offset: 0x0017EB29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return OKBGMBEIMCB.Descriptor;
			}
		}

		// Token: 0x060090DF RID: 37087 RVA: 0x00180930 File Offset: 0x0017EB30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OKBGMBEIMCB()
		{
		}

		// Token: 0x060090E0 RID: 37088 RVA: 0x00180938 File Offset: 0x0017EB38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OKBGMBEIMCB(OKBGMBEIMCB other) : this()
		{
			this.id_ = other.id_;
			if (other.JBHBNPLECJACase == OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList)
			{
				this.CustomValueList = other.CustomValueList.Clone();
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060090E1 RID: 37089 RVA: 0x00180986 File Offset: 0x0017EB86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OKBGMBEIMCB Clone()
		{
			return new OKBGMBEIMCB(this);
		}

		// Token: 0x170028D0 RID: 10448
		// (get) Token: 0x060090E2 RID: 37090 RVA: 0x0018098E File Offset: 0x0017EB8E
		// (set) Token: 0x060090E3 RID: 37091 RVA: 0x00180996 File Offset: 0x0017EB96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x170028D1 RID: 10449
		// (get) Token: 0x060090E4 RID: 37092 RVA: 0x0018099F File Offset: 0x0017EB9F
		// (set) Token: 0x060090E5 RID: 37093 RVA: 0x001809BB File Offset: 0x0017EBBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValueList CustomValueList
		{
			get
			{
				if (this.jBHBNPLECJACase_ != OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList)
				{
					return null;
				}
				return (MissionCustomValueList)this.jBHBNPLECJA_;
			}
			set
			{
				this.jBHBNPLECJA_ = value;
				this.jBHBNPLECJACase_ = ((value == null) ? OKBGMBEIMCB.JBHBNPLECJAOneofCase.None : OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList);
			}
		}

		// Token: 0x170028D2 RID: 10450
		// (get) Token: 0x060090E6 RID: 37094 RVA: 0x001809D5 File Offset: 0x0017EBD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OKBGMBEIMCB.JBHBNPLECJAOneofCase JBHBNPLECJACase
		{
			get
			{
				return this.jBHBNPLECJACase_;
			}
		}

		// Token: 0x060090E7 RID: 37095 RVA: 0x001809DD File Offset: 0x0017EBDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearJBHBNPLECJA()
		{
			this.jBHBNPLECJACase_ = OKBGMBEIMCB.JBHBNPLECJAOneofCase.None;
			this.jBHBNPLECJA_ = null;
		}

		// Token: 0x060090E8 RID: 37096 RVA: 0x001809ED File Offset: 0x0017EBED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as OKBGMBEIMCB);
		}

		// Token: 0x060090E9 RID: 37097 RVA: 0x001809FC File Offset: 0x0017EBFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(OKBGMBEIMCB other)
		{
			return other != null && (other == this || (this.Id == other.Id && object.Equals(this.CustomValueList, other.CustomValueList) && this.JBHBNPLECJACase == other.JBHBNPLECJACase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060090EA RID: 37098 RVA: 0x00180A5C File Offset: 0x0017EC5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.jBHBNPLECJACase_ == OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList)
			{
				num ^= this.CustomValueList.GetHashCode();
			}
			num ^= (int)this.jBHBNPLECJACase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060090EB RID: 37099 RVA: 0x00180ABF File Offset: 0x0017ECBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060090EC RID: 37100 RVA: 0x00180AC7 File Offset: 0x0017ECC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060090ED RID: 37101 RVA: 0x00180AD0 File Offset: 0x0017ECD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Id);
			}
			if (this.jBHBNPLECJACase_ == OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList)
			{
				output.WriteRawTag(170, 80);
				output.WriteMessage(this.CustomValueList);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060090EE RID: 37102 RVA: 0x00180B34 File Offset: 0x0017ED34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.jBHBNPLECJACase_ == OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.CustomValueList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060090EF RID: 37103 RVA: 0x00180B90 File Offset: 0x0017ED90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(OKBGMBEIMCB other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.JBHBNPLECJACase == OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList)
			{
				if (this.CustomValueList == null)
				{
					this.CustomValueList = new MissionCustomValueList();
				}
				this.CustomValueList.MergeFrom(other.CustomValueList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060090F0 RID: 37104 RVA: 0x00180BFD File Offset: 0x0017EDFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060090F1 RID: 37105 RVA: 0x00180C08 File Offset: 0x0017EE08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 10282U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						MissionCustomValueList missionCustomValueList = new MissionCustomValueList();
						if (this.jBHBNPLECJACase_ == OKBGMBEIMCB.JBHBNPLECJAOneofCase.CustomValueList)
						{
							missionCustomValueList.MergeFrom(this.CustomValueList);
						}
						input.ReadMessage(missionCustomValueList);
						this.CustomValueList = missionCustomValueList;
					}
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003742 RID: 14146
		private static readonly MessageParser<OKBGMBEIMCB> _parser = new MessageParser<OKBGMBEIMCB>(() => new OKBGMBEIMCB());

		// Token: 0x04003743 RID: 14147
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003744 RID: 14148
		public const int IdFieldNumber = 5;

		// Token: 0x04003745 RID: 14149
		private uint id_;

		// Token: 0x04003746 RID: 14150
		public const int CustomValueListFieldNumber = 1285;

		// Token: 0x04003747 RID: 14151
		private object jBHBNPLECJA_;

		// Token: 0x04003748 RID: 14152
		private OKBGMBEIMCB.JBHBNPLECJAOneofCase jBHBNPLECJACase_;

		// Token: 0x02001B41 RID: 6977
		public enum JBHBNPLECJAOneofCase
		{
			// Token: 0x0400668A RID: 26250
			None,
			// Token: 0x0400668B RID: 26251
			CustomValueList = 1285
		}
	}
}
